<?php 

namespace Admin\Model;

use Think\Model;

class SystemModel extends Model{
    
    // 处理数据
    public function getAllData(){
        $res = $this->select();
        
        // 定义返回的数组
        $data = array();
        
        foreach ($res as $v){
            $data[$v['type']][$v['name']] = $v['value'];
        }
        return $data;
    }
}
?>
